package com.base.commons.tools.page;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author: xhl
 * @Date: 2021/08/25 14:03
 */
@Data
@ApiModel("分页数据入参")
public class BasePageReq {

    @ApiModelProperty(
            value = "当前页码，从1开始",
            required = true,
            example = "1"
    )
    @JsonProperty("page_index")
    private int pageIndex = 1;

    @ApiModelProperty(
            value = "每页显示记录数",
            required = true,
            example = "10"
    )
    @JsonProperty("page_size")
    private int pageSize = 20;
}
